package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.po.Receipt;
import com.project.entity.vo.ReceiptVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: 
 * @Package: 
 * @ClassName: 
 * @Author: ZhaoLongShi
 * @CreateDate: 
 */
public interface ReceiptMapper extends BaseMapper<Receipt> {
    Integer addReceipt(Receipt receipt);

    /**
     * 查看所有的订单
     * @param userId
     * @return
     */
    List<ReceiptVo> seleteReceipt(@Param("userId") Long userId, @Param("orderName") String orderNumber);

    /**
     * 修改订单信息
     * @param receipt
     * @return
     */
    Integer updateReceipt(Receipt receipt);

}